<!doctype html>
<html>
<head>
    <title>API调试工具</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="http://mat1.gtimg.com/app/api_debuger/css/debuger.css" rel="stylesheet" type="text/css"/>
    <link href="http://mat1.gtimg.com/app/api_debuger/js/syntaxhighlighter_3.0.83/styles/shThemeDefault.css" rel="stylesheet" type="text/css" />
    <script src="http://mat1.gtimg.com/app/opent/js/jquery-1.4.3.min.js" type="text/javascript"></script>
    <script src="http://mat1.gtimg.com/app/api_debuger/js/syntaxhighlighter_3.0.83/scripts/shCore.js" type="text/javascript"></script>
    <script src="http://mat1.gtimg.com/app/api_debuger/js/beautify.js"></script>
    <script src="http://mat1.gtimg.com/app/api_debuger/js/syntaxhighlighter_3.0.83/scripts/shBrushJScript.js" type="text/javascript"></script>
    <script src="http://mat1.gtimg.com/app/api_debuger/js/syntaxhighlighter_3.0.83/scripts/shBrushXml.js" type="text/javascript"></script>
</head>
<body>
    <!--
    <h3>header信息：</h3>
    <pre>POST /api/list/add_to_list HTTP/1.1
        User-Agent: PHP-SDK OAuth2.0
        Host: open.t.qq.com
        Accept: */*
        Content-Length: 293
        Content-Type: application/x-www-form-urlencoded
    </pre>
    
    <h3>包体信息：</h3>
    <pre class="brush:js;" format="formatJSON">
        <?php echo htmlspecialchars($response);?>
    </pre>-->
    <h3>接口：</h3>
    <pre><?php echo $url;?></pre>
    <h3>方法：</h3>
    <pre><?php echo $method;?></pre>
    <h3>请求参数：</h3>
    <!--class="brush:js;highlight: [2, 5]"-->
    <pre class="brush:js;" format="formatJSON">
        <?php echo json_encode($params);?>
    </pre>
    <h3>请求耗时：</h3>
    <pre><?echo $cost;?>秒</pre>
    <h3>返回结果：</h3>
    <pre  class="brush:js;" format="formatJSON">
        <?php echo $response;?>
    </pre>
</body>
<script>
$(document).ready(function(){
    $("pre[format]").each(function(){
        window[$(this).attr("format")].call(null,$(this)[0]);
    });
    SyntaxHighlighter.all();/*
    if (document.body.textContent){
        SyntaxHighlighter.all();
    }*/
});
</script>
</html>
    <script>
        frameElement.height = 1;
        var resizeWin = function(){
            frameElement.height = document.documentElement.scrollHeight || document.body.scrollHeight;
        }
        window.resize = resizeWin;
        setTimeout(resizeWin,100);
    </script>
    </body>
</html>